<?php
include 'config/db_config.php';
include 'lib/kelola_gambar.php';

$id_produk = $_GET['idp'];
$id_gambar = $_GET['idg'];

$kelola_gambar = new kelola_gambar();

$kelola_gambar->delete_gambar($id_gambar);

header('location:view/edit_produk.php?id='.$id_produk);